Repository navigation
Conversation
The Debian and Ubuntu unattended ISO tests run on the runner named by the ISO_E2E_RUNNER repository variable, or on ubuntu-latest while it is unset. Pull requests from forks always stay on ubuntu-latest. A self-hosted host is reused between runs, so each job now: - uses its own TAP interface, subnet and MAC, so both can run on one host; - clears a leftover guest network before creating its own, and removes it and the build output afterwards; - takes back root-owned files a cancelled run left in the workspace. Removing the network also stops a dnsmasq whose pid file was lost. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each ISO job gets its own Compose project, so the Debian and Ubuntu jobs cannot share or remove each other's installer container on one Docker host, and removes its installer container, network and image when it finishes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guest network, QEMU and the test now run inside one Docker container per job, through test/e2e_in_docker.sh. The container is its own network namespace, so the TAP interface, NAT rules and dnsmasq keep fixed names and addresses, never clash with a parallel job on the same host, and go away with the container. The runner needs only Docker and /dev/kvm: no sudo, no apt, and no per-workflow interfaces, subnets or MACs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This builds on #740 and includes its commits. It moves the Debian and Ubuntu unattended ISO tests to the
archive-1org runners, but without hardcoded interfaces, subnets or MACs per workflow, and withoutsudoon the runner.The guest network, QEMU and the test now run inside a throwaway Docker container per job, through the new
test/e2e_in_docker.sh. The container is its own network namespace, so the TAP interface, NAT rules and dnsmasq fromtest/e2e_network.shkeep their fixed defaults (dne2e0,192.168.77.0/24). They never clash with a parallel job on the same host, and they disappear with the container. Pull requests from forks still run onubuntu-latest, through the same container path.What changes compared with PR 740:
E2E_TAP_IFACE/E2E_HOST_IP/E2E_GUEST_IP/E2E_GUEST_MACvalues;/dev/kvmchmod step;pkill, and everysudo.dappnode-iso-<run_id>-<attempt>, unique per run instead of one name per workflow.docker run ubuntu:24.04, notsudo.test/e2e.Dockerfile: anubuntu:24.04image with QEMU, OVMF, sshpass, socat, dnsmasq and iptables.test/e2e_in_docker.sh:NET_ADMIN,/dev/net/tunand/dev/kvmwhen present;E2E_*variables through;test-outputback to the caller;test/e2e_network.sh: it skips theip_forwardsysctl when it is already on, because a container's/proc/sysis read-only.What the runner needs
/dev/kvm. Without it the install falls back to TCG emulation and runs past the 90-minute timeout.Type of change
How Has This Been Tested?
dne2e0/192.168.77.10. A veth stood in for the QEMU guest. Each guest got DNS from dnsmasq, the local ping reply and HTTPS through NAT, and the host saw none of it.E2E_*variables reached the test.test/e2e_in_docker.shexited with 143 and left no container behind.timezone:key on the schedule.archive-1are the first full installs with KVM.Checklist